<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	
<p:dialog header="Detalhes do perfil" widgetVar="dialogPerfilDetalhes" modal="true"
	height="350" width="550" resizable="false">
	
	<h:form id="perfilDetalhesForm">
	
		<p:panel id="panelPerfilDetalhesModal" style="height:245px; overflow:auto;">
		
			<table cellspacing="10">
				<tr>
					<td>
						<h:outputLabel for="perfil" value="Perfil:" style="font-weight: bold;" />
						<br />
						<h:outputText value="#{manterPerfisBean.perfilAux.nmPerfil}" />
		            </td>
				</tr>
				
				<tr>
					<td width="500px;">
						<h:outputLabel for="permissao" value="Permissão de acesso:" style="font-weight: bold;" />
						<p:tree value="#{manterPerfisBean.rootDetalhes}" var="node" expanded="false" >  
					        <p:treeNode>  
					            <h:outputText value="#{node.nmMenu}" />  
					        </p:treeNode>  
					    </p:tree>  
		            </td>
				</tr>
			</table>

		</p:panel>
			
		<br />
		<div align="right">
			<p:commandButton value="Fechar" onclick="dialogPerfilDetalhes.hide();" type="button" />
		</div>

	</h:form>
		
</p:dialog>
	
</html>